using System;
using System.Net.Mail;


namespace modele
{
	public class SendMail
	{
		//declaration

		private MailMessage mmsg = null;
		private string subject="",body="";
	    private MailAddress from, to ,cc;
		private string message = "";
		private string signature = "";
		public string Subject
		{
			get
			{
				return this.subject;
			}set
			 {
				 this.subject = value;
				 this.mmsg.Subject = this.subject;
			 }
		}
		public MailAddress To
		{
			get
			{
				return this.to;
			}set
			 {
				 this.to = value;
				 
			 }
		}

		public MailAddress From{
			get
			{
				return this.from;
			}set
			 {
				 this.from = value;
				 this.mmsg.From = this.from;
			 }
		}

		public MailAddress Cc{
			get
			{
				return this.cc;
			}set
			 {
				 this.cc = value;
				 
			 }
		}

		public string Body{
			get
			{
				return this.body;
			}set
			 {
				 this.body = value;
				 this.mmsg.Body = this.body;
			 }
		}

		

		public string Signature
		{
			get
			{
				return this.signature;
			}set
			 {
				 this.signature = value;
			 }
		}

		public SendMail()
		{			
			this.mmsg = new MailMessage();
			
			
			this.mmsg.Priority = MailPriority.Normal;
			this.mmsg.IsBodyHtml = true;
			this.mmsg = new MailMessage();
			this.signature = "\n\n-----------------------------------------\n"
				+ "CAMS Cambodia Airport Management Services\n"
				+ "Phonom Penh International Airports\n"
				+ "P.O. Box 1256\n"
				+ "National Road #4\n"
				+ "Phnom Penh\n"
				+ "Kingdom of Cambodia \n"
				+ "\nIT hotline: 023 890 520, Ext: 1555\n"
				+ "IT support: pnh.it.support@cambodia-airports.aero\n"
				+ "-----------------------------------------\n";
		}

		public SendMail(MailAddress From, MailAddress To, MailAddress Cc, string Body)
		{
			this.mmsg = new MailMessage();
			this.From = From;
			this.To = To;
			this.Cc = Cc;
			this.Body = Body;
			mmsg.IsBodyHtml = true;
			this.signature = "\n\n-----------------------------------------\n"
				+ "CAMS Cambodia Airport Management Services\n"
				+ "Phonom Penh International Airports\n"
				+ "P.O. Box 1256\n"
				+ "National Road #4\n"
				+ "Phnom Penh\n"
				+ "Kingdom of Cambodia \n"
				+ "\nIT hotline: 023 890 520, Ext: 1555\n"
				+ "IT support: pnh.it.support@cambodia-airports.aero\n"
				+ "-----------------------------------------\n";
		}

		

		
	}
}


